package com.wlz;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;

@SpringBootApplication
@RestController
public class DemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(DemoApplication.class, args);
    }

    @Autowired
    private WlzServer wlzServer;


    @RequestMapping("/")
    public String sayHello()  {
        try {
            wlzServer.create();
        } catch (IOException e) {
            e.printStackTrace();
        }
        return "say hello";
    }
}
